package org.terramagnet.pdmviewer.parser;

import java.util.ArrayList;
import java.util.List;

public class PDMPhysicalDiagram extends PDMObject{

	private String id;
	private String name;
	private String code;
	private final List<PDMRectangleShape> shapes = new ArrayList<>();

	/**
	 * @return the id
	 */
	@Override
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	public List<PDMRectangleShape> getShapes() {
		return shapes;
	}

	@Override
	public String toString() {
		return "PDMPhysicalDiagram{" + "id=" + id + ", name=" + name + ", code=" + code + ", shapes=" + shapes + '}';
	}

}
